Skip to content

Obtain Host Panic/Boot Failure Messages#2518

Open
jamesmunns wants to merge 23 commits into
masterfrom
james/packrattin
Open

Obtain Host Panic/Boot Failure Messages#2518
jamesmunns wants to merge 23 commits into
masterfrom
james/packrattin

Conversation

@jamesmunns

Copy link
Copy Markdown
Contributor

Not yet complete.

Closes #2504
Currently based on #2503

Comment thread task/packrat-api/src/lib.rs Outdated
Comment thread task/packrat-api/src/lib.rs Outdated
Comment thread task/packrat-api/src/lib.rs Outdated
Comment thread task/packrat-api/src/lib.rs Outdated
// this would only happen if packrat crashes. We could store some fake info here to
// continue preparing an ereport, but THAT is going to be a problem anyway because
// we send ereports to, you guessed it: packrat, which just crashed.
let response = self

@jamesmunns jamesmunns May 19, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably something better we can do here as well, the only failure modes for a write_host_bootfail (and host panic) call are:

  1. That's illegal (not supported, OR client dies and revokes the lease)
  2. Packrat died

Neither of these are particulary good things (the former doesn't even matter here), and there might be a better way to express the idolatry IPC API to make this more clear in the generated code.

@jamesmunns

Copy link
Copy Markdown
Contributor Author

MGS message changes are tracked in oxidecomputer/management-gateway-service#495.

Comment thread task/packrat-api/src/lib.rs Outdated
Comment thread task/control-plane-agent/src/mgs_compute_sled.rs Outdated
@jamesmunns

Copy link
Copy Markdown
Contributor Author

Should be able to move this out of WIP tomorrow, progress update here: #2504 (comment). I'll address Eliza's comments before marking as ready for review.

@jamesmunns jamesmunns marked this pull request as ready for review July 2, 2026 12:40
@jamesmunns jamesmunns changed the title WIP: Obtain Host Panic/Boot Failure Messages Obtain Host Panic/Boot Failure Messages Jul 2, 2026
@jamesmunns

Copy link
Copy Markdown
Contributor Author

This is IMO ready to review, there are still a couple of TODO comments, but they are items that I could probably stand to have feedback on!

.unwrap_lite();

// TODO: Do we want to give this to packrat too?
// TODO: Update `humility host boot-fail` to use packrat API!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still pending. I might need to open a humility PR that handles this elegantly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

control-plane-agent: Add interface(s) for retrieving Host Panic/Boot Failure messages

2 participants